package com.ys.erp.entity.data.bean;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author lwj
 * @date 2024/2/2
 */
    
@Data
@TableName(value = "t_goods_brand")
public class GoodsBrand {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 品牌名字
     */
    @TableField(value = "brand_name")
    private String brandName;

    /**
     * 品牌图片
     */
    @TableField(value = "brand_pic")
    private String brandPic;

    /**
     * 排序
     */
    @TableField(value = "order_num")
    private Integer orderNum;

    @TableField(value = "brand_label")
    private String brandLabel;

    /**
     * 品牌描述
     */
    @TableField(value = "brand_describe")
    private String brandDescribe;

    @TableField(value = "version")
    @Version
    private Integer version;

    @TableField(value = "create_time")
    private LocalDateTime createTime;

    @TableField(value = "update_time", update = "now()")
    private LocalDateTime updateTime;
}